/*
 * @Description: 
 * @Author: fhw
 * @Date: 2022-11-18 16:39:53
 */
import { forwardRef, Module } from '@nestjs/common';
import { SocketRoomService } from './socket-room.service';
import { SocketRoomGateway } from './socket-room.gateway';
import { ConfigModule } from '../config/config.module';
import { GroupChatRecord } from 'src/chat-record/entities/group-chat-record.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ChatUserModule } from 'src/chat_user/chat_user.module';
import { GroupChatModule } from 'src/group-chat/group-chat.module';
import { ChatUserGroup } from 'src/chat_user_group/entities/chat_user_group.entity';
import { SocketFriendChatModule } from '../socket-friend-chat/socket-friend-chat.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([GroupChatRecord, ChatUserGroup]),
    forwardRef(() => ChatUserModule),
    forwardRef(() => GroupChatModule),
    forwardRef(() => ConfigModule),
    forwardRef(() => SocketFriendChatModule),
  ],
  providers: [SocketRoomGateway, SocketRoomService],
  exports: [SocketRoomService]
})
export class SocketRoomModule { }
